﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.Serialization;

namespace CrazyClient
{
    [DataContract]
    public class DisplayInfoList
    {
        public DisplayInfoList()
        {
            //_numberOfScreens = Screen.AllScreens.Count();
            _displays = new List<DisplayInfo>();
            foreach (Screen s in Screen.AllScreens)
            {
                _displays.Add(new DisplayInfo(s));
            }

        }

        //int _numberOfScreens;

        [DataMember]
        public int NumberOfScreens
        {
            get
            {
                return _displays.Count;
            }
            private set
            {

            }
        }
        List<DisplayInfo> _displays;
        [DataMember]
        public List<DisplayInfo> Displays
        {
            get
            {
                return _displays;
            }
            private set
            {
                _displays = value;
            }
        }

    }
}
